package cn.itdlz.service.impl;

import java.util.List;

import org.springframework.transaction.annotation.Transactional;

import cn.itdlz.dao.UserDao;
import cn.itdlz.domain.User;
import cn.itdlz.service.UserService;
@Transactional
public class UserServiceImpl implements UserService {
	private UserDao userDao;
	public void setUserDao(UserDao userDao) {
		this.userDao = userDao;
	}

	@Override
	public void saveUser(User user) {
		userDao.saveUser(user);
		
	}

	@Override
	public int findAll(String phone, String password) {
		// TODO Auto-generated method stub
		return userDao.findAll(phone,password);
	}

	@Override
	public int checkRegister(String phone) {
		// TODO Auto-generated method stub
		return userDao.checkRegister(phone);
	}

	

}
